/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.guobo.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;

/**
 * 轨迹Entity
 * @author wudavid
 * @version 2017-03-09
 */
public class TrailLog extends DataEntity<TrailLog> {
	
	private static final long serialVersionUID = 1L;
	private String motionType;		// 轨迹类型,进入或者出去in/out
	private String rfid;		// rfid
	private Rw rw;              // 读写器
	private Asset asset;        //资产
	private String status;      //轨迹状态,当轨迹类型为out时,status才有意义	0为未处理,1为已处理,来自字典表TrailLog_type
	/**
	 * 报警处理时间
	 */
	private Date handleTime;
	
	/**
	 * 处理人
	 */
	private User handleUser;	
	private String grantEpc;        //授权的rfid编码
	private String isWarn;          //是否报警,true报警,false不报警
	private String isDispatched;//是否受控	
	private String readerAdr;   //读写器URL地址	
	
	
	public String getGrantEpc() {
		return grantEpc;
	}

	public void setGrantEpc(String grantEpc) {
		this.grantEpc = grantEpc;
	}

	public String getIsWarn() {
		return isWarn;
	}

	public void setIsWarn(String isWarn) {
		this.isWarn = isWarn;
	}

	public String getIsDispatched() {
		return isDispatched;
	}

	public void setIsDispatched(String isDispatched) {
		this.isDispatched = isDispatched;
	}

	public String getReaderAdr() {
		return readerAdr;
	}

	public void setReaderAdr(String readerAdr) {
		this.readerAdr = readerAdr;
	}

	public Date getHandleTime() {
		return handleTime;
	}

	public void setHandleTime(Date handleTime) {
		this.handleTime = handleTime;
	}

	public User getHandleUser() {
		return handleUser;
	}

	public void setHandleUser(User handleUser) {
		this.handleUser = handleUser;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Asset getAsset() {
		return asset;
	}

	public void setAsset(Asset asset) {
		this.asset = asset;
	}

	public Rw getRw() {
		return rw;
	}

	public void setRw(Rw rw) {
		this.rw = rw;
	}

	public TrailLog() {
		super();
	}

	public TrailLog(String id){
		super(id);
	}

	@Length(min=0, max=64, message="轨迹类型长度必须介于 0 和 64 之间")
	public String getMotionType() {
		return motionType;
	}

	public void setMotionType(String motionType) {
		this.motionType = motionType;
	}

	@Length(min=0, max=64, message="rfid长度必须介于 0 和 64 之间")
	public String getRfid() {
		return rfid;
	}

	public void setRfid(String rfid) {
		this.rfid = rfid;
	}
	
}